package cn.jbooter.simple.demo.system.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.List;
import java.util.Map;
import java.util.ArrayList;
import java.util.HashMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.jbooter.simple.demo.system.api.ASysUserApi;
import cn.jbooter.simple.demo.system.mapper.ASysUserMapper;
import cn.jbooter.simple.demo.system.model.ASysUser;

/**
 * service业务处理层
 * @author code_generator
 */
@Service
@Transactional(readOnly=true)
public class ASysUserService implements ASysUserApi{
	private static final Logger logger = LoggerFactory.getLogger(ASysUserService.class);

	@Autowired
	private ASysUserMapper aSysUserMapper;

	public ASysUser getOne(Map<String,Object> params){
		return aSysUserMapper.getOne(params);
	}

	public List<ASysUser> getList(Map<String,Object> params){
		return aSysUserMapper.getList(params);
	}
	
	@Transactional
	public void delete(List<String> ids) {
		if(ids!=null && !ids.isEmpty()) {
			for(String id : ids) {
				aSysUserMapper.deleteByPrimaryKey(id.trim());
			}
		}
	}

	@Transactional
	public void save(ASysUser aSysUser){
		//int count = aSysUserMapper.insert(aSysUser);
	}

	
	
	
	
	
	
	
	
	
	
	
	
	
	
}
